<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="/template/principal.xhtml">
        <ui:define name="conteudo">
            <h:form>
                <p:panel header="Atualizar Estorias">
                    <p:messages globalOnly="true"/>
                    <p:tabView >
                        <p:tab title="Lista de Estorias" >
                            <p:dataTable value="#{estoria.listaEstorias1}" var="e" rows="10" dynamic="false" paginator="true">
                                <p:column headerText="Nome" style="width: 30%"  filterBy="#{e.nome}">
                                    <p:commandLink action="#{estoria.editar}" ajax="false">
                                        <h:outputText value="#{e.nome}"/>
                                        <f:param name="idEstoria" value="#{e.idEst}"/>
                                    </p:commandLink>
                                </p:column>
                                <p:column headerText="Projeto" style="width: 30%">
                                    <h:outputText value="#{e.fkProj.nome}"/>
                                </p:column>
                                <p:column headerText="Situação" style="width: 30%">
                                    <h:outputText value="#{e.fkSituacao.descricao}"/>
                                </p:column>
                                <p:column headerText="Excluir" style="width: 20%">
                                    <p:commandLink action="#{estoria.excluir}" ajax="false" >
                                        <h:outputText value="Excluir"/>
                                        <f:param name="idEstoria" value="#{e.idEst}"/>
                                    </p:commandLink>    
                                </p:column>
                            </p:dataTable>
                        </p:tab>
                    </p:tabView>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>